package com.miku.utils;

import java.io.IOException;

import org.im4java.core.ConvertCmd;
import org.im4java.core.IM4JavaException;
import org.im4java.core.Operation;

public class MyConvertCmd extends ConvertCmd{
	
	public MyConvertCmd(){
		super(true);
	}

	@Override
	public void run(Operation arg0, Object... arg1) throws IOException,
			InterruptedException, IM4JavaException {
		
		if(OSUtils.osType() == OSUtils.OSType.Mac){
			setSearchPath("/usr/local/bin/");
		}
		super.run(arg0, arg1);
	}
}
